<!DOCTYPE html>
<html lang=zh>
<head><meta name="generator" content="Hexo 3.9.0">
    <!-- so meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="HandheldFriendly" content="True">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="description" content="前言以前实现这样的箭头都是使用的图片，而且还得考虑高清屏幕下的二倍图的问题，使用图片担心http请求太多，使用雪碧图写起来有点蛋疼，使用字体图标又感觉杀鸡用宰牛刀。好吧~能用代码搞定的事还是用代码做吧.. 开始绘制三角箭头html1&amp;lt;span class=&quot;triangle-arrow&quot;&amp;gt;&amp;lt;/span&amp;gt; css12345678.triangle-arrow &amp;#123;">
<meta name="keywords" content="同花顺,CSS">
<meta property="og:type" content="article">
<meta property="og:title" content="CSS制作箭头">
<meta property="og:url" content="https://andyliwr.github.io/2018/06/14/css_generate_arrow/index.html">
<meta property="og:site_name" content="月光倾城的代码小屋">
<meta property="og:description" content="前言以前实现这样的箭头都是使用的图片，而且还得考虑高清屏幕下的二倍图的问题，使用图片担心http请求太多，使用雪碧图写起来有点蛋疼，使用字体图标又感觉杀鸡用宰牛刀。好吧~能用代码搞定的事还是用代码做吧.. 开始绘制三角箭头html1&amp;lt;span class=&quot;triangle-arrow&quot;&amp;gt;&amp;lt;/span&amp;gt; css12345678.triangle-arrow &amp;#123;">
<meta property="og:locale" content="zh-CN">
<meta property="og:image" content="https://file.lantingshucheng.com/1528968041595.png">
<meta property="og:image" content="https://file.lantingshucheng.com/1528968174691.png">
<meta property="og:image" content="https://file.lantingshucheng.com/1528969782408.png">
<meta property="og:image" content="https://file.lantingshucheng.com/1528970382472.png">
<meta property="og:image" content="https://file.lantingshucheng.com/1528978826411.png">
<meta property="og:updated_time" content="2020-01-15T06:30:09.116Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="CSS制作箭头">
<meta name="twitter:description" content="前言以前实现这样的箭头都是使用的图片，而且还得考虑高清屏幕下的二倍图的问题，使用图片担心http请求太多，使用雪碧图写起来有点蛋疼，使用字体图标又感觉杀鸡用宰牛刀。好吧~能用代码搞定的事还是用代码做吧.. 开始绘制三角箭头html1&amp;lt;span class=&quot;triangle-arrow&quot;&amp;gt;&amp;lt;/span&amp;gt; css12345678.triangle-arrow &amp;#123;">
<meta name="twitter:image" content="https://file.lantingshucheng.com/1528968041595.png">
    
    
        
          
              <link rel="shortcut icon" href="/images/favicon.ico">
          
        
        
          
            <link rel="icon" type="image/png" href="/images/favicon-192x192.png" sizes="192x192">
          
        
        
          
            <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
          
        
    
    <!-- title -->
    <title>CSS制作箭头</title>
    <!-- styles -->
    <link rel="stylesheet" href="/css/style.css">
    <!-- persian styles -->
    
      <link rel="stylesheet" href="/css/rtl.css">
    
    <!-- rss -->
    
    
</head>

<body class="max-width mx-auto px3 ltr">
    
      <div id="header-post">
  <a id="menu-icon" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="menu-icon-tablet" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="top-icon-tablet" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');" style="display:none;"><i class="fas fa-chevron-up fa-lg"></i></a>
  <span id="menu">
    <span id="nav">
      <ul>
         
          <li><a href="/">首页</a></li>
         
          <li><a href="/archives/">归档</a></li>
         
          <li><a href="/search/">搜索</a></li>
         
          <li><a href="/tags/">标签</a></li>
         
          <li><a href="/others/">其他文章</a></li>
        
      </ul>
    </span>
    <br/>
    <span id="actions">
      <ul>
        
        <li><a class="icon" href="/2018/08/03/koa_upload_file/"><i class="fas fa-chevron-left" aria-hidden="true" onmouseover="$('#i-prev').toggle();" onmouseout="$('#i-prev').toggle();"></i></a></li>
        
        
        <li><a class="icon" href="/2018/06/11/mongo_auto_backup/"><i class="fas fa-chevron-right" aria-hidden="true" onmouseover="$('#i-next').toggle();" onmouseout="$('#i-next').toggle();"></i></a></li>
        
        <li><a class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up" aria-hidden="true" onmouseover="$('#i-top').toggle();" onmouseout="$('#i-top').toggle();"></i></a></li>
        <li><a class="icon" href="#"><i class="fas fa-share-alt" aria-hidden="true" onmouseover="$('#i-share').toggle();" onmouseout="$('#i-share').toggle();" onclick="$('#share').toggle();return false;"></i></a></li>
      </ul>
      <span id="i-prev" class="info" style="display:none;">上一篇</span>
      <span id="i-next" class="info" style="display:none;">下一篇</span>
      <span id="i-top" class="info" style="display:none;">返回顶部</span>
      <span id="i-share" class="info" style="display:none;">分享文章</span>
    </span>
    <br/>
    <div id="share" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=https://andyliwr.github.io/2018/06/14/css_generate_arrow/"><i class="fab fa-facebook " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&text=CSS制作箭头"><i class="fab fa-twitter " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&title=CSS制作箭头"><i class="fab fa-linkedin " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&is_video=false&description=CSS制作箭头"><i class="fab fa-pinterest " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=CSS制作箭头&body=Check out this article: https://andyliwr.github.io/2018/06/14/css_generate_arrow/"><i class="fas fa-envelope " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&title=CSS制作箭头"><i class="fab fa-get-pocket " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&title=CSS制作箭头"><i class="fab fa-reddit " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&title=CSS制作箭头"><i class="fab fa-stumbleupon " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&title=CSS制作箭头"><i class="fab fa-digg " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&name=CSS制作箭头&description="><i class="fab fa-tumblr " aria-hidden="true"></i></a></li>
</ul>

    </div>
    <div id="toc">
      <ol class="toc"><li class="toc-item toc-level-4"><a class="toc-link" href="#前言"><span class="toc-number">1.</span> <span class="toc-text">前言</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#开始绘制"><span class="toc-number">2.</span> <span class="toc-text">开始绘制</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#三角箭头"><span class="toc-number">2.1.</span> <span class="toc-text">三角箭头</span></a></li></ol></li><li class="toc-item toc-level-4"><a class="toc-link" href="#斜线箭头"><span class="toc-number">3.</span> <span class="toc-text">斜线箭头</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#基于transform的斜线箭头"><span class="toc-number">4.</span> <span class="toc-text">基于transform的斜线箭头</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#纯dom和css实现斜线箭头"><span class="toc-number">5.</span> <span class="toc-text">纯dom和css实现斜线箭头</span></a></li></ol>
    </div>
  </span>
</div>

    
    <div class="content index py4">
        
        <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
  <header>
    
    <h1 class="posttitle" itemprop="name headline">
        CSS制作箭头
    </h1>



    <div class="meta">
      <span class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">
        <span itemprop="name">月光倾城的代码小屋</span>
      </span>
      
    <div class="postdate">
        <time datetime="2018-06-14T17:13:43.000Z" itemprop="datePublished">2018-06-14</time>
    </div>


      

      
    <div class="article-tag">
        <i class="fas fa-tag"></i>
        <a class="tag-link" href="/tags/CSS/">CSS</a>, <a class="tag-link" href="/tags/同花顺/">同花顺</a>
    </div>


    </div>
  </header>
  

  <div class="content" itemprop="articleBody">
    <h4 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h4><p>以前实现这样的箭头都是使用的图片，而且还得考虑高清屏幕下的二倍图的问题，使用图片担心http请求太多，使用雪碧图写起来有点蛋疼，使用字体图标又感觉杀鸡用宰牛刀。好吧~能用代码搞定的事还是用代码做吧..</p>
<h4 id="开始绘制"><a href="#开始绘制" class="headerlink" title="开始绘制"></a>开始绘制</h4><h5 id="三角箭头"><a href="#三角箭头" class="headerlink" title="三角箭头"></a>三角箭头</h5><p><strong>html</strong><br><figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&lt;span <span class="class"><span class="keyword">class</span></span>=<span class="string">"triangle-arrow"</span>&gt;<span class="xml"><span class="tag">&lt;/<span class="name">span</span>&gt;</span></span></span><br></pre></td></tr></table></figure></p>
<p><strong>css</strong><br><figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="selector-class">.triangle-arrow</span> &#123;</span><br><span class="line">  <span class="attribute">display</span>: inline-block;</span><br><span class="line">  <span class="attribute">width</span>: <span class="number">30px</span>;</span><br><span class="line">  <span class="attribute">height</span>: <span class="number">30px</span>;</span><br><span class="line">  <span class="attribute">border-top</span>: <span class="number">30px</span> solid <span class="number">#4189ff</span>;</span><br><span class="line">  <span class="attribute">border-left</span>: <span class="number">30px</span> solid transparent;</span><br><span class="line">  <span class="attribute">border-right</span>: <span class="number">30px</span> solid transparent;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<p>效果如下：<br><img src="https://file.lantingshucheng.com/1528968041595.png" alt="三角箭头"><br>你还可以通过调整<code>border-left</code>和<code>border-right</code>来改变三角形顶角的角度值。<br><img src="https://file.lantingshucheng.com/1528968174691.png" alt="不同角度的三角箭头"><br>它的原理我是这么理解的，代码中没有定义<code>border-bottom</code>，意味着底部边框已经被细化成一个点了，而当我们定义顶部边框的高度和盒子高度一致的时候，顶部边框就填充了整个盒子，我们再使用左边框<code>border-left</code>和右边框<code>border-right</code>来覆盖顶部边框，因为设置的是透明，这样被遮挡后的顶部边框就变成了一个三角形</p>
<blockquote>
<p>需要注意的是<code>border-left</code>和<code>border-right</code>的宽度需要设置成一致（否则不是等腰三角形），并且要大于等于顶部边框的一半（否则就变成了梯形）</p>
</blockquote>
<p>懂了原理之后，我们就可以绘制任意方向的三角箭头，向左？向右？向上？我干了，你随意…</p>
<h4 id="斜线箭头"><a href="#斜线箭头" class="headerlink" title="斜线箭头"></a>斜线箭头</h4><p>目前有两种方案，一种是基于<code>transform</code>的，一种是使用<code>dom</code>元素+<code>css</code>实现的</p>
<h4 id="基于transform的斜线箭头"><a href="#基于transform的斜线箭头" class="headerlink" title="基于transform的斜线箭头"></a>基于transform的斜线箭头</h4><p>这个比较好理解，我们只要设置盒子两个相邻的边框，然后将盒子旋转就好了<br><strong>html</strong><br><figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&lt;span <span class="class"><span class="keyword">class</span></span>=<span class="string">"line-arrow"</span>&gt;<span class="xml"><span class="tag">&lt;/<span class="name">span</span>&gt;</span></span></span><br></pre></td></tr></table></figure></p>
<p><strong>css</strong><br><figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="selector-class">.line-arrow</span> &#123;</span><br><span class="line">  <span class="attribute">display</span>: inline-block;</span><br><span class="line">  <span class="attribute">width</span>: <span class="number">30px</span>;</span><br><span class="line">  <span class="attribute">height</span>: <span class="number">30px</span>;</span><br><span class="line">  <span class="attribute">border-top</span>: <span class="number">1px</span> solid <span class="number">#4189ff</span>;</span><br><span class="line">  <span class="attribute">border-left</span>: <span class="number">1px</span> solid <span class="number">#4189ff</span>;</span><br><span class="line">  <span class="attribute">transform</span>: <span class="built_in">rotate</span>(-<span class="number">45deg</span>)</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<p>效果如下：<br><img src="https://file.lantingshucheng.com/1528969782408.png" alt="斜线箭头"><br>如果需要将线条变粗，我们只需要修改边框宽度就行了。<br>当然这种方法也有缺陷，首先是tranform支持度的问题，一些低端机或者老的浏览器还是不太给面子。然后是如果你想调整两条线之间的夹角，好像有点难，我暂时还没想到办法&gt;_&lt;</p>
<h4 id="纯dom和css实现斜线箭头"><a href="#纯dom和css实现斜线箭头" class="headerlink" title="纯dom和css实现斜线箭头"></a>纯dom和css实现斜线箭头</h4><p>先解释下原理，最开始我们介绍了如何绘制三角箭头，如果两个同方向的三角箭头叠加放在一起，使用上方的三箭头去覆盖下方三角箭头是不是就能绘制出来一个斜线箭头呢？<br><img src="https://file.lantingshucheng.com/1528970382472.png" alt="斜线箭头"><br><strong>html</strong><br><figure class="highlight angelscript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">&lt;span <span class="keyword">class</span>="<span class="symbol">arrow</span>"&gt;</span><br><span class="line">  &lt;<span class="symbol">span</span> <span class="symbol">class</span>="<span class="symbol">out</span>"&gt;</span><br><span class="line">  &lt;/<span class="symbol">span</span>&gt;</span><br><span class="line">  &lt;<span class="symbol">span</span> <span class="symbol">class</span>="<span class="symbol">inner</span>"&gt;</span><br><span class="line">  &lt;/<span class="symbol">span</span>&gt;</span><br><span class="line">&lt;/<span class="symbol">span</span>&gt;</span><br></pre></td></tr></table></figure></p>
<p><strong>css</strong><br><figure class="highlight scss"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br></pre></td><td class="code"><pre><span class="line"><span class="selector-class">.arrow</span> &#123;</span><br><span class="line">  <span class="attribute">display</span>: inline-block;</span><br><span class="line">  <span class="attribute">width</span>: <span class="number">30px</span>;</span><br><span class="line">  <span class="attribute">height</span>: <span class="number">30px</span>;</span><br><span class="line">  <span class="attribute">position</span>: relative;</span><br><span class="line">  <span class="attribute">overflow</span>: hidden;</span><br><span class="line">  <span class="attribute">background</span>: <span class="number">#ffffff</span>;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="selector-class">.out</span> &#123;</span><br><span class="line">  <span class="attribute">display</span>: inline-block;</span><br><span class="line">  <span class="attribute">width</span>: <span class="number">20px</span>;</span><br><span class="line">  <span class="attribute">height</span>: <span class="number">30px</span>;</span><br><span class="line">  <span class="attribute">border-left</span>: <span class="number">20px</span> solid <span class="number">#4189ff</span>;</span><br><span class="line">  <span class="attribute">border-top</span>: <span class="number">15px</span> dashed transparent;</span><br><span class="line">  <span class="attribute">border-bottom</span>: <span class="number">15px</span> dashed transparent;</span><br><span class="line">  <span class="attribute">border-right</span>: <span class="number">20px</span>;</span><br><span class="line">  <span class="attribute">box-sizing</span>: border-box;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="selector-class">.inner</span> &#123;</span><br><span class="line">  <span class="attribute">position</span>: absolute;</span><br><span class="line">  <span class="attribute">top</span>: <span class="number">0</span>;</span><br><span class="line">  <span class="attribute">left</span>: -<span class="number">3px</span>;</span><br><span class="line">  <span class="attribute">display</span>: inline-block;</span><br><span class="line">  <span class="attribute">width</span>: <span class="number">20px</span>;</span><br><span class="line">  <span class="attribute">height</span>: <span class="number">30px</span>;</span><br><span class="line">  <span class="attribute">border-left</span>: <span class="number">20px</span> solid <span class="number">#ffffff</span>;;</span><br><span class="line">  <span class="attribute">border-top</span>: <span class="number">15px</span> dashed transparent;</span><br><span class="line">  <span class="attribute">border-bottom</span>: <span class="number">15px</span> dashed transparent;</span><br><span class="line">  <span class="attribute">border-right</span>: <span class="number">20px</span>;</span><br><span class="line">  <span class="attribute">box-sizing</span>: border-box;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<p>实现效果就像这样：<br><img src="https://file.lantingshucheng.com/1528978826411.png" alt="斜线箭头"></p>

  </div>
  <div class="statement">
    <hr>  
    1. 如果本文帮到了您，不妨点一下右上角的”<i class="fas fa-share-alt"></i>“按钮。<br>
    2. 除非注明，本博文章均为原创，转载请以链接形式标明本文地址。<br>
    3. 如果你有任何疑问，欢迎发送邮件到我的邮箱<a href="mailto:andyliwr@outlook.com">andyliwr@outlook.com<br>
  </div>
</article>


    <div class="blog-post-comments">
        <div id="gitalk_thread">
            <noscript>加载评论需要在浏览器启用 JavaScript 脚本支持。</noscript>
        </div>
    </div>



        
          <div id="footer-post-container">
  <div id="footer-post">

    <div id="nav-footer" style="display: none">
      <ul>
         
          <li><a href="/">首页</a></li>
         
          <li><a href="/archives/">归档</a></li>
         
          <li><a href="/search/">搜索</a></li>
         
          <li><a href="/tags/">标签</a></li>
         
          <li><a href="/others/">其他文章</a></li>
        
      </ul>
    </div>

    <div id="toc-footer" style="display: none">
      <ol class="toc"><li class="toc-item toc-level-4"><a class="toc-link" href="#前言"><span class="toc-number">1.</span> <span class="toc-text">前言</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#开始绘制"><span class="toc-number">2.</span> <span class="toc-text">开始绘制</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#三角箭头"><span class="toc-number">2.1.</span> <span class="toc-text">三角箭头</span></a></li></ol></li><li class="toc-item toc-level-4"><a class="toc-link" href="#斜线箭头"><span class="toc-number">3.</span> <span class="toc-text">斜线箭头</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#基于transform的斜线箭头"><span class="toc-number">4.</span> <span class="toc-text">基于transform的斜线箭头</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#纯dom和css实现斜线箭头"><span class="toc-number">5.</span> <span class="toc-text">纯dom和css实现斜线箭头</span></a></li></ol>
    </div>

    <div id="share-footer" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=https://andyliwr.github.io/2018/06/14/css_generate_arrow/"><i class="fab fa-facebook fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&text=CSS制作箭头"><i class="fab fa-twitter fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&title=CSS制作箭头"><i class="fab fa-linkedin fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&is_video=false&description=CSS制作箭头"><i class="fab fa-pinterest fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=CSS制作箭头&body=Check out this article: https://andyliwr.github.io/2018/06/14/css_generate_arrow/"><i class="fas fa-envelope fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&title=CSS制作箭头"><i class="fab fa-get-pocket fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&title=CSS制作箭头"><i class="fab fa-reddit fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&title=CSS制作箭头"><i class="fab fa-stumbleupon fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&title=CSS制作箭头"><i class="fab fa-digg fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=https://andyliwr.github.io/2018/06/14/css_generate_arrow/&name=CSS制作箭头&description="><i class="fab fa-tumblr fa-lg" aria-hidden="true"></i></a></li>
</ul>

    </div>

    <div id="actions-footer">
        <a id="menu" class="icon" href="#" onclick="$('#nav-footer').toggle();return false;"><i class="fas fa-bars fa-lg" aria-hidden="true"></i> 菜单</a>
        <a id="toc" class="icon" href="#" onclick="$('#toc-footer').toggle();return false;"><i class="fas fa-list fa-lg" aria-hidden="true"></i> 目录</a>
        <a id="share" class="icon" href="#" onclick="$('#share-footer').toggle();return false;"><i class="fas fa-share-alt fa-lg" aria-hidden="true"></i> 分享</a>
        <a id="top" style="display:none" class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up fa-lg" aria-hidden="true"></i> 返回顶部</a>
    </div>

  </div>
</div>

        
        <footer id="footer">
  <div class="footer-left">
    Copyright &copy; 2020 Dikang Li
  </div>
  <div class="footer-right">
    <nav>
      <ul>
         
          <li><a href="/">首页</a></li>
         
          <li><a href="/archives/">归档</a></li>
         
          <li><a href="/search/">搜索</a></li>
         
          <li><a href="/tags/">标签</a></li>
         
          <li><a href="/others/">其他文章</a></li>
        
      </ul>
    </nav>
  </div>
</footer>

    </div>
</body>
</html>
<!-- styles -->
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
<link rel="stylesheet" href="/lib/justified-gallery/css/justifiedGallery.min.css">
<link rel="stylesheet" href="/lib/fancybox/jquery.fancybox.css">

<link rel="stylesheet" href="https://file.lantingshucheng.com/blog/v3/static/styles/gitalk.css">


<!-- jquery -->
<script src="/lib/jquery/jquery.min.js"></script>
<script src="/lib/justified-gallery/js/jquery.justifiedGallery.min.js"></script>
<script src="/lib/fancybox/jquery.fancybox.pack.js"></script>

<script type="text/javascript" src="https://file.lantingshucheng.com/blog/v3/static/scripts/md5.js"></script>
<script type="text/javascript" src="https://file.lantingshucheng.com/blog/v3/static/scripts/gitalk.min.js"></script>

<script src="/js/main.js"></script>
<!-- search -->

<!-- Google Analytics -->

<!-- Baidu Analytics -->

    <script type="text/javascript">
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?7851ca7a86be957be994acb77639a5be";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>

<!-- Disqus Comments -->


  <script type="text/javascript">
    window.onload = function(){
      if (window.location.href.indexOf('andyliwr.github.io') > -1) {
        var gitalk = new Gitalk({
          clientID: 'ad6f70df0c70d2b715f9',
          clientSecret: '40384bee244c1e17dd7c37733d21e9ef669e969c',
          repo: 'Andyliwr.github.io',
          owner: 'Andyliwr',
          admin: ['Andyliwr'],
          id: md5(location.pathname),
          distractionFreeMode: 'true'
        })
        gitalk.render('gitalk_thread')
      }
    }
  </script>


